package com.unhz.generator.dao;

import com.unhz.generator.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysUser> findAllUser();

    int getTotalRecordsByKeywords(@Param("keywords") String keywords);

    List<SysUser> findUserMap(Map<String, Object> map);

    List<SysUser> findAllUserMap(Map<String, Object> map);

    int deleteUserById(@Param("userId") Integer userId);


    SysUser selectByUserName(@Param("userCode") String userCode);

    int getTotalRecords(@Param("keywords") String keywords,
                        @Param("startTime") String startTime,
                        @Param("endTime") String endTime,
                        @Param("userOrganizationCode") String rankCode);

    SysUser loginUser(@Param("userPhone") String userPhone, @Param("password") String password);

}